const port = process.env.port || process.env.npm_config_port || 80; // 端口
module.exports = {
  //...
  baseUrl: "./",
  //...
  devServer: {
    host: "0.0.0.0",
    port: port,
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // 配置地址
        target: `http://192.168.201.129:8080/`,
        // target: `http://localhost:8080/`,
        changeOrigin: true,
        pathRewrite: {
          ["^" + process.env.VUE_APP_BASE_API]: ""
        }
      }
    },
    disableHostCheck: true
  }
};
